/**
 * 
 */
package cn.kuaipai.mcard.dao;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.ibatis.sqlmap.client.SqlMapClient;

/**
 * sqlMapClientDaoSupport注入SqlMapClient实例
 * 当你需要往Bean里注入一个其父类中定义的属性，而你又无法复写父类的属性或属性的 setter方法时
 * @author zy
 */
public class BaseSqlMapClientDaoSupport extends SqlMapClientDaoSupport {
	@Resource(name = "sqlMapClient")
	private SqlMapClient sqlMapClient;

	@PostConstruct
	public void initSqlMapClient() {
		super.setSqlMapClient(sqlMapClient);
	}

}
